package cn.wolfcode.luowowo.repository;

import cn.wolfcode.luowowo.domain.Region;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;

public interface RegionRepository extends MongoRepository<Region, String> {
    //根据是否热门区域，并且根据序号排序，获取是热门区域的对象
    List<Region> findByIshotOrderBySequenceAsc(int stateHot);
}
